#!/usr/bin/perl
#
# svnadmin config file.
#
package cfg;
#=======================
# Config Start
#=======================

$svnadmin_cfg	= "/volume1/svn/svnadmin.ini";
$svn_root	= "/volume1/svn";
$svn_url	= "svn://snv.null.tw/%s";
$svn_bin_path	= "/volume1/opt/bin";
$mod_user	= "svn";
$mod_group	= "users";

$auth_type	= "syno"; # syno or ip
@auth_ip	= (''); # ('192.168.1.1','127.0.0.1')

#=======================
# Config End
#=======================
$ver_svnadmin=`$svn_bin_path/svnadmin --version`;
$ver_svnadmin=substr($ver_svnadmin,index($ver_svnadmin,'version')+8,index($ver_svnadmin,'Copyright')-18);
$ver_svnlook=`$svn_bin_path/svnlook --version`;
$ver_svnlook=substr($ver_svnlook,index($ver_svnlook,'version')+8,index($ver_svnlook,'Copyright')-18);

sub get{
	$v=$_[0];
	return $$v;
}

sub allow_ip{
	return @auth_ip;
}